var status = -1;
var selectionLog = [];

function action(d, c, b) {
    if (status == 0 && d == 0) {
        cm.dispose();
        return
    }
    status++;
    selectionLog[status] = b;
    var a = -1;
    if (status <= a++) {
        cm.dispose()
    } else {
        if (status === a++) {
            cm.npc_ChangeController(1530150, "oid=37320851", 920, 19, 3, 870, 970, 0, true, false);
            cm.npc_SetSpecialAction("oid=37320851", "summon", 0, 0);
            cm.npc_ChangeController(1530160, "oid=37320852", 970, 19, 3, 920, 1020, 1, true, false);
            cm.npc_SetSpecialAction("oid=37320852", "summon", 0, 0);
            cm.npc_SetSpecialAction("oid=37320851", "jealousy", -1, 1);
            cm.npc_SetSpecialAction("oid=37320852", "jealousy", -1, 1);
            cm.openCamera(1, 0, [1530150, 1530160], [0], 0, -1, -1, 1);
            cm.dispose()
        }
    }
}

function start() {
    status = -1;
    action(1, 0, 0)
};